package com.example.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.j256.ormlite.stmt.query.In;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private Button q1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    private void initView() {
        q1 = (Button) findViewById(R.id.q1);

        q1.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.q1:
                startActivity(new Intent(this,Q1Activity.class));
                break;
        }
    }
}
